package com.qf2207.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.qf2207.bo.DevicesBo;

/*
 * @Author LX
 * @Date 2022/7/21    21:15
 * @Version 3.3
 */
public class DevicesBoReadListener extends AnalysisEventListener<DevicesBo> {

    @Override
    public void invoke(DevicesBo devicesBo, AnalysisContext analysisContext) {
        //每读取一行数据都会调用
        System.out.println(devicesBo);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        //所有的数据解析完之后调用此方法
        System.out.println("文件解析完之后调用此方法");
    }
}
